[SUBROUTINE]
version = 1.14
icon = probe-stock.png
name = _("Probe Workpiece")
type = probe_stock
help = _("<b>Probe X and Y axis differently inside or outside with options for touch-off&#10;START WITH PROBE IN CENTER OF WORK PIECE</b>&#10;<span foreground='blue' style='oblique'><b>Message possible in terminal window</b></span>")
order = act el h1 xopt xz dbx h3 yopt yz dby H5 zopt zval zdepth h2 touch al_x al_y h4 clr info

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
icon = enable.png
value = 1

[PARAM_EL]
name = _("Show entry lines")
type = bool
icon = glasses.png
value = 1

[PARAM_DBX]
name = _("Double check")
type = bool
icon = dbl-check.png
value = 0
header = h1

[PARAM_DBY]
name = _("Double check")
type = bool
icon = dbl-check.png
value = 0
tool_tip = _("Only if X is double checked")
header = h3

[PARAM_H1]
name = _("X axis")
type = sub-header

[PARAM_H3]
name = _("Y axis")
type = sub-header

[PARAM_H5]
name = _("Z axis")
type = sub-header

[PARAM_ZOPT]
name = _("Probe axis")
type = combo
options = _("No=0:Yes and set height=1:Yes and do not set=2")
tool_tip = _("Do NOT Probe if hollow")
value = 0
header = h5
;icon = probe-in-out.png

[PARAM_ZDEPTH]
name = _("Depth")
type = float
icon = probe-down.png
tool_tip = _("Maximum depth")
value = -0.4
metric_value = -10
header = h5

[PARAM_ZVAL]
name = _("Set value")
type = float
tool_tip = _("Value to set if touch")
value = 0.0
metric_value = 0.0
;options = _("Inside=0:Outside=1")
header = h5
icon = height.png

[PARAM_XOPT]
name = _("Mode")
type = combo
tool_tip = _("Probe inside or outside")
value = 1
options = _("Inside=0:Outside=1")
header = h1
icon = probe-in-out.png

[PARAM_H4]
name = _("Options")
type = sub-header

[PARAM_H2]
name = _("Touching off")
type = sub-header

[PARAM_CLR]
name = _("Safe relative Z")
tool_tip = _("Relative to start position")
type = float
value = 0.5
metric_value = 12.0
header = h4
icon = safe-z-rel.png

[PARAM_INFO]
name = _("Calibration info")
tool_tip = _("Show calibration helpful info")
type = bool
icon = info.png
value = 0
header = h4

[PARAM_XOPT]
name = _("Mode")
type = combo
tool_tip = _("Probe inside or outside")
value = 1
options = _("Inside=0:Outside=1")
header = h1
icon = probe-in-out.png

[PARAM_YOPT]
name = _("Mode")
type = combo
tool_tip = _("Probe inside or outside")
value = 0
options = _("Inside=0:Outside=1")
header = h3
icon = probe-in-out.png

[PARAM_XZ]
name = _("Probe height")
tool_tip = _("Relative to start position")
icon = safe-z-rel.png
type = float
value = -0.5
metric_value = -12.0
header = h1

[PARAM_YZ]
name = _("Probe height")
tool_tip = _("Relative to start position")
icon = depth.png
type = float
value = 0.0
metric_value = 0.0
header = h3

[PARAM_TOUCH]
name = _("Touch off X,Y")
type = bool
icon = touch-off.png
tool_tip = _("Set center to X0 and Y0")
value = 1
header = h2

[PARAM_AL_X]
name = _("X axis align")
icon = align-x.png
type = combo
options = _("Left=0:Center=1:Right=2")
header = h2
value = 1
tool_tip = _("Define X reference point")

[PARAM_AL_Y]
name = _("Y axis align")
icon = align-y.png
type = combo
options = _("Top=0:Center=1:Bottom=2")
header = h2
value = 1
tool_tip = _("Define Y reference point")

[CALL]
content =
	(begin #sub_name)
	(probe material author : Fernand Veilleux)
	
	o<#self_id_ena> if [#param_act]
		o<probe_stock> CALL [#param_xopt] [#param_yopt] [#param_el] [#param_clr] [#param_xz] [#param_yz] [#param_dbx] [#param_dby] [#param_al_x] [#param_al_y] [#param_touch] [#param_info] [#<wp_inside_length>] [#<wp_length>] [#<wp_inside_width>] [#<wp_width>] [#param_zopt] [#param_zval] [#param_zdepth]
		
	o<#self_id_ena> endif
	(end #sub_name)
